<div class="row">
    <div class="col-md-12">
        <div class="grid simple">
            <div class="grid-title no-border">
                <h4 class="semi-bold">选择需要生成的表</h4>
            </div>
            <div class="grid-body no-border">
                <div class="row-fluid">          
                    <form method="POST" action="<?= DOMAIN.'build_dao/build' ?>" >
                        <br>
                        <div class="alert alert-block alert-error fade in">
                            <h4 class="alert-heading">注意！</h4>
                            <p> <?= $struct_path ?> 目录下的所有文件将被覆盖。</p>
                            <p> <?= $dao_path ?> 目录下会新增没有的 Dao 文件。</p>
                            <br>
                            <div class="row">
                                <div class="col-md-3">
                                    <select name="table" class="select2 form-control">
                                        <option value="_ALL_TABLES_">所有表（<?= count($tables) ?>）</option>
                                        <? foreach($tables as $table): ?>
                                            <option value="<?= $table ?>"><?= $table ?></option>
                                        <? endforeach ?>
                                    </select>
                                </div>
                            </div>
                            <div class="button-set">
                                <button type="submit" class="btn btn-danger btn-cons">确认生成</button>
                                <button type="reset" class="btn btn-white btn-cons">取消</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>